package com.kamm.springbootflower.service;


import com.kamm.springbootflower.domain.Flower;
import com.kamm.springbootflower.domain.FlowerTb;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface FlowerService {

    int deleteByPrimaryKey(Integer fId);

    Flower selectByPrimaryKey(Integer fId);

    int insert(Flower record);

    int updateByPrimaryKeySelective(Flower record);

    int updateByPrimaryKey(Flower record);

    int insertSelective(Flower record);

    int count(Flower flower);

    List<Flower> findAll(Flower flower, Integer pageNum, Integer pageSize);


    int deleteAll(String[] ids);


    List<Flower> findAll(Flower flower);

    int delete(String[] ids);

    int add2(List<FlowerTb> list);

    List<Flower> getTb();

    int deleteTbId(@Param("fId") Integer fId, @Param("ftId") Integer ftId);

    int addType(FlowerTb flowerTb);

    Flower findById(Integer id);
    int update(FlowerTb flowerTb);

    int deleteById(Integer id);
}